package invest.mapper;

import invest.model.Profit;
import invest.model.Record;
import invest.model.StockHistoryModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StockHistoryMapper {
    int insertStockHistory(StockHistoryModel stockHistoryModel);

    int batchStockHistoryInsert(@Param("stockHistoryModel") List<StockHistoryModel>  stockHistoryModel);

    List<StockHistoryModel> queryByCodeStockHistory(String code);

    int insertRecord(Record record);

    int insertProfile(Profit profit);

    int getRecordCounts();

    List<String> getRecordCodes();

    List<Record> queryByCodeRecord(String code);

    Record queryRecordById(Long id);
}
